package com.yunxin.common.utils.oss;

import lombok.Builder;
import lombok.Data;

/**
 * 图片缩放选项
 * @author zero°
 * @since 2023-06-05
 */
@Builder
@Data
public class OssPhotoQualityOption implements OssPhotoOption {

    /**
     * 相对质量
     */
    private Long quality;

    /**
     * 绝对质量
     */
    private Long absoluteQuality;

    @Override
    public OssPhotoOperationTypeEnum operationType() {
        return OssPhotoOperationTypeEnum.QUALITY_EXCHANGE;
    }
}
